home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
batchlrn.arc
/
VAR.HLP
< prev
next >
Wrap
Text File
|
1991-06-17
|
1KB
|
24 lines
#
|---------------B A T C H L R N H E L P S Y S T E M-----------------|
|command:%<name>% (within a batch processing file) |
| |
|use:A way of passing specific data to a batch processing file. |
| |
|how:Type: %<name>% to set the variable. |
| |
|NOTES:Variables provide another way of passing specific data to a |
| batch processing file. Please make THIS distinction, there IS an |
| important difference between variables and parameters. PARAMETERS |
| are constantly changing.A variable,once declared,RETAINS its value |
| until either you reset it or turn the PC off. Using the variable |
| you can not only pass values to the system but to other .BAT files. |
| A variable is a text string(a name)enclosed by % signs (%variable%) |
| Values are given to variables with the DOS SET command. For example,|
| if a batch file contains the statement: LINK %FILE% you can "set" |
| %FILE% to ANOTHER name (which DOS will then recognize, having dis- |
| carded FILE and replacing it with the new name). In the example,and |
| to replace %FILE% you would type: SET FILE = DOFILE (DOFILE now is |
| the variable). |
| |
|----------------- T I M E M A S T E R ---------------------|